package com.situ.address.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.situ.address.entity.Address;

//地址操作数据库相关的标准行为
public interface AddressMapper {
	
	int insert(Address add);
	
	@Select("select * from address where parent_id = #{i}")
	List<Address> selectByParentId(int i);

	@Select("select * from address")
	List<Address> selectAll();
}
